package com.javabasic.algorithm.shine_interview;

import java.util.Scanner;

/**
 * @Author xiongmin
 * @Description //TODO
 * @Date 2020/3/8 20:23
 * @Version 1.0
 **/
public class 倒置字符串 {

    public static Scanner cin = new Scanner(System.in);

    public static void main(String[] args) {

        String input = cin.nextLine();
        String[] arrStr = input.split(" ");
        int len = arrStr.length;
        String result = "";
        for (int i = len-1; i >= 0; i--) {
            result += arrStr[i];
            if (i != 0) {
                result += " ";
            }
        }
        System.out.println(result);
    }
}
